﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using VehicleScale.Properties;
using Janus.Windows.UI;

namespace VehicleScale
{
    public class SettingApp
    {

        #region BackColor
        public Color BackColor
        {
            get { return Settings.Default.BackColor; }
            set
            {
                if (Settings.Default.BackColor != value)
                {
                    Settings.Default.BackColor = value;
                }
            }
        } 
        #endregion

        #region Style
        public VisualStyle Style
        {
            get { return Settings.Default.Style; }
            set
            {
                if (Settings.Default.Style != value)
                {
                    Settings.Default.Style = value;
                }
            }
        } 
        #endregion

        #region CustomColor
        public Color CustomColor
        {
            get { return Settings.Default.CustomColor; }
            set
            {
                if (Settings.Default.CustomColor != value)
                {
                    Settings.Default.CustomColor = value;
                }
            }
        }
        #endregion

        #region ColorScheme
        public Janus.Windows.Ribbon.Office2007ColorScheme ColorScheme
        {
            get { return Settings.Default.ColorScheme; }
            set
            {
                if (Settings.Default.ColorScheme != value)
                {
                    Settings.Default.ColorScheme = value;
                }
            }
        }
        #endregion

        #region BackupLocation
        public string BackupLocation
        {
            get { return Settings.Default.BackupLocation; }
            set
            {
                if (Settings.Default.BackupLocation != value)
                {
                    Settings.Default.BackupLocation = value;
                }
            }
        } 
        #endregion

        #region TaskType
        public int TaskType
        {
            get { return Settings.Default.TaskType; }
            set
            {
                if (Settings.Default.TaskType != value)
                {
                    Settings.Default.TaskType = value;
                }
            }
        } 
        #endregion

        #region StartDate
        public DateTime StartDate
        {
            get { return Settings.Default.StartDate; }
            set
            {
                if (Settings.Default.StartDate != value)
                {
                    Settings.Default.StartDate = value;
                }
            }
        } 
        #endregion

        #region StartTime
        public DateTime StartTime
        {
            get { return Settings.Default.StartTime; }
            set
            {
                if (Settings.Default.StartTime != value)
                {
                    Settings.Default.StartTime = value;
                }
            }
        } 
        #endregion

        #region DaysOfWeek
        public uint DaysOfWeek
        {
            get { return Settings.Default.DaysOfWeek; }
            set
            {
                if (Settings.Default.DaysOfWeek != value)
                {
                    Settings.Default.DaysOfWeek = value;
                }
            }
        } 
        #endregion

        #region DaysOfMonth
        public uint DaysOfMonth
        {
            get { return Settings.Default.DaysOfMonth; }
            set
            {
                if (Settings.Default.DaysOfMonth != value)
                {
                    Settings.Default.DaysOfMonth = value;
                }
            }
        } 
        #endregion

        #region JobID
        public uint JobID
        {
            get { return Settings.Default.JobID; }
            set
            {
                if (Settings.Default.JobID != value)
                {
                    Settings.Default.JobID = value;
                }
            }
        }
        #endregion

        #region ReceiptPrintName
        public string ReceiptPrintName
        {
            get { return Settings.Default.ReceiptPrintName; }
            set
            {
                if (Settings.Default.ReceiptPrintName != value)
                {
                    Settings.Default.ReceiptPrintName = value;
                }
            }
        }
        #endregion

        #region ReportPrintName
        public string ReportPrintName
        {
            get { return Settings.Default.ReportPrintName; }
            set
            {
                if (Settings.Default.ReportPrintName != value)
                {
                    Settings.Default.ReportPrintName = value;
                }
            }
        }
        #endregion

        #region IsPreviewReportPrint
        public bool IsPreviewReportPrint
        {
            get { return Settings.Default.IsPreviewReportPrint; }
            set
            {
                if (Settings.Default.IsPreviewReportPrint != value)
                {
                    Settings.Default.IsPreviewReportPrint = value;
                }
            }
        }
        #endregion


        #region IsPreviewReceiptPrint
        public bool IsPreviewReceiptPrint
        {
            get { return Settings.Default.IsPreviewReceiptPrint; }
            set
            {
                if (Settings.Default.IsPreviewReceiptPrint != value)
                {
                    Settings.Default.IsPreviewReceiptPrint = value;
                }
            }
        }
        #endregion
    }
}
